package com.dsg.service.account;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dsg.entity.account.DsgAccountCompare;
import com.dsg.service.apply.IDsglService;

/**
 * <p>
 * 天鑽公司与银行账比较 服务类
 * </p>
 *
 * @author system
 * @since 2020-11-18
 */
public interface IDsgAccountCompareService extends IService<DsgAccountCompare>, IDsglService<DsgAccountCompare> {

    /**
     * 获取天鑽公司与银行账比较,为空时间新增
     *
     * @param accountNo 銀行賬號
     * @param accountName 銀行名稱
     * @return
     */
    DsgAccountCompare getAddDsgAccountCompare(String accountNo, String accountName);


    /**
     * 獲取統計餘額和可用餘額
     * @param accountNo
     * @param entCode
     * @return
     */
    DsgAccountCompare getSumDsgAccountCompare(String accountNo, String entCode);

    /**
     * Save Check Bank Result
     * @param dsgAccountCompare
     * @return
     */
    DsgAccountCompare checkBank(DsgAccountCompare dsgAccountCompare);

    /**
     * 獲取最新
     * @param accountNo
     * @param entCode
     * @return
     */
    DsgAccountCompare getNewDsgAccountCompare(String accountNo, String entCode);
}
